package com.stars.entity.sysdict;

import com.stars.common.base.BaseUUID;
import com.stars.common.valid.AddView;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author csot.qhluodajie on 2019/3/15.
 */
@Data
public class SysDictEntityCommand extends BaseUUID {
    /**编号*/
    @NotBlank(groups = {AddView.class},message="编号不能为空!")
    private String code;
    /**父类ID*/
    private String pid;
    /**排序*/
    private int weight;
    /**备注*/
    private String note;
    /**名称*/
    @NotBlank(groups = {AddView.class},message="名称不能为空!")
    private String name;

    private Long createDate;
}
